<?php

$submit = array(
    'name'	=> 'submit',
    'id'	=> 'submit',
    'value'	=> 'Submit',
    'class' => 'submit'
);
?>
<head>
    <?php $this->load->view('load_view'); ?>
</head>
<div class="col-wrap handin-wrap">
    <!--start col-->
    <div class="col handin">
        <div class="wrap-title">
            <p class="page-title">
                学期选择
            </p>
        </div>

        <p class="desc">
    	介绍：管理员一定要激活学期，课表才会有效，创建学期的同时，将生成目录
        </p>
        <div class="arrange manageform">
            <div class="current-year">
                <p class="desc">当前激活学期:<?php echo $currentyear; ?></p>
                <ul>
                    <li class="title">本学期存在的课表</li>
                </ul>
            </div>
            <?php
            echo form_open('admincp/period');
            echo form_label('选择要激活的学期');
            foreach($year as $key=>$value) {
                $array=array(
                    'name'=>'year',
                    'value'=>$key
                );
                echo '<p class="radio">'.form_radio($array)."<span>$value</span></p>";
            }
            echo form_submit($submit); ?>
            <?php echo form_close()?>
        </div>
    </div>
    <!--end col-->
</div>
<!--end col-wrap-->
<script>
    $(window.parent.document).find("ul.nav li a").removeClass("then");
    $(window.parent.document).find("a#period").attr("class","then");
</script>
